package com.examplemartin.jpademo.pojo.vo;

import com.examplemartin.jpademo.annotation.EntityCheck;
import com.examplemartin.jpademo.pojo.admin.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@Component
public class GoodVO extends BaseEntity implements Serializable {


  @EntityCheck(required = true, errRequired = "必须输入商品名")
  private String name;
  @EntityCheck(required = true, errRequired = "必须输入商品规格")
  private String spec;// 商品规格
  private String pk = "保留"; // 包装
  private String unit; // 计量单位

  private String comment;



}
